#import <Foundation/Foundation.h>

/*  监听方法
 
WEAK(self)
[[NSNotificationCenter defaultCenter] addObserverForName:@"YLNOTICE"
                                                  object:nil
                                                   queue:[NSOperationQueue mainQueue]
                                              usingBlock:^(NSNotification * _Nonnull note) {
                                                  STRONG(self)
                                                  YLMessage *msg = [note object];
                                              }];
*/

NS_ASSUME_NONNULL_BEGIN

@interface YLMessage : NSObject

@property(nonatomic,assign)NSInteger what;

@property(nonatomic,copy)id obj;

@property(nonatomic,copy)NSString *desc;

+(void)post:(NSString*)name what:(NSInteger)what;

+(void)post:(NSString*)name what:(NSInteger)what obj:(id)obj;

+(void)post:(NSString*)name what:(NSInteger)what desc:(NSString*)desc;

+(void)post:(NSString*)name what:(NSInteger)what desc:(NSString*)desc obj:(id)obj;

@end

NS_ASSUME_NONNULL_END
